package com.encyclopedia.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Getter
@Setter
@Accessors(chain = true)
@TableName("plant_crop_relation")
public class CropRelation implements Serializable {
    @TableField("crop_id")
    private Integer cropId;
    @TableId("relation_id")
    private Integer relationId;
    @TableField("common_name")
    private String commonName;

    @Override
    public String toString() {
        return "CropRelation{" +
                "cropId=" + cropId +
                ", relationId=" + relationId +
                ", commonName='" + commonName + '\'' +
                '}';
    }
}
